% 设置直方图的坐标间隔
binEdges = 0:100:10000; % 将间隔设置为50，这可以根据您的数据范围进行调整

% 可视化市值分布 (totalcapital) 的直方图
figure;
histogram(growth.totalCapital, 'BinEdges', binEdges);
xlabel('Total Capital');
ylabel('Frequency');
title('Histogram of Market Capitalization with Custom Bin Edges');

% 提取各个行业的市值总和
industryCapital = groupsummary(growth, 'newSFCIndustry', 'sum', 'weight');

% 可视化行业分布
figure;
pie(industryCapital.sum_weight, industryCapital.newSFCIndustry);
title('Industry Distribution by Market Capitalization');